#include "Event.h"


Event::Event()
:
m_consumed(false),
m_timeOccurred(SDL_GetTicks())
{
}


Event::~Event()
{
}


/**
 * Marks this event as consumed.
 */
    
void Event::Consume()
{
    m_consumed = true;
}


/**
 * Indicates if the event is consumed or not.
 * 
 * @return true: if event is consumed
 *         false: otherwise	
 */
    
bool Event::IsConsumed() const
{
    return m_consumed;
}


/**
 * Returns ticks of when the event occurred
 * 
 * @return total ticks since engine start.
 */
    
Uint32 Event::GetTimeOccurred() const
{
    return m_timeOccurred;
}